from wtforms import Form,StringField,PasswordField
from wtforms.validators import DataRequired,Length
from .BaseForms import baseForm


class article_add_edit(baseForm):
    in_title = StringField('in_title',
                             validators=[DataRequired(message='请输入咨询标题！'),
                                         Length(3,50,message='咨询标题不可小于3个字符，并不可超过50个字符！')])
    in_contexts = StringField('in_contexts',
                              validators=[DataRequired(message='请输入咨询内容！'),
                                          Length(3, message='咨询标题不可小于3个字符！')
                                                        ])



